﻿using System;

namespace KinonekoSoftware.Studio.Pages.Shenanigans
{
    public partial class FriendTalkingGalleryViewModel : TalkingGalleryViewModel
    {
        public FriendTalkingGalleryViewModel() : base(TalkingChannelType.Friend)
        {
            
        }
        
        protected override string GetNewChannelDescription() => "输入私信窗口的名字";
        
        protected override TalkingBase OnCreateInstance(string name, Character owner) => new FriendTalking
        {
            Id       = ID.Get(),
            Name     = name,
            OwnerID  = owner.Id,
            Messages = new List<TalkingObject>(),
        };
    }
}